﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMS.BLL;
using CMS.BLL.Entity;


public partial class Controls_TravelService_ctrTravelService : System.Web.UI.UserControl
{
    private int nCurrentLang = Support.GetCurrentLanguage();
    private int nDefaultLang = Support.GetDefaultLanguage();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {
            lblTravelService.Text = MultipleLanguage.TRAVELSERVICE[nCurrentLang - 1];
            StaticPages objTab1 = new StaticPages();
            objTab1.LoadById(51);
            StaticPages objTab2 = new StaticPages();
            objTab2.LoadById(52);
            StaticPages objTab3 = new StaticPages();
            objTab3.LoadById(53);

            switch (nCurrentLang)
            {
                case 1:
                    ltrTab1.Text = objTab1.Data.PageContent1;
                    ltrTab2.Text = objTab2.Data.PageContent1;
                    ltrTab3.Text = objTab3.Data.PageContent1;
                    lblTab1.Text = objTab1.Data.MenuName1;
                    lblTab2.Text = objTab2.Data.MenuName1;
                    lblTab3.Text = objTab3.Data.MenuName1;
                    break;
                case 2:
                   ltrTab1.Text = objTab1.Data.PageContent2;
                    ltrTab2.Text = objTab2.Data.PageContent2;
                    ltrTab3.Text = objTab3.Data.PageContent2;
                    lblTab1.Text = objTab1.Data.MenuName2;
                    lblTab2.Text = objTab2.Data.MenuName2;
                    lblTab3.Text = objTab3.Data.MenuName2;
                    break;
                case 3:
                   ltrTab1.Text = objTab1.Data.PageContent3;
                    ltrTab2.Text = objTab2.Data.PageContent3;
                    ltrTab3.Text = objTab3.Data.PageContent3;
                    lblTab1.Text = objTab1.Data.MenuName3;
                    lblTab2.Text = objTab2.Data.MenuName3;
                    lblTab3.Text = objTab3.Data.MenuName3;
                    break;
            }
     
    }
   
}